package pub.wkq.resource.controller;

import org.checkerframework.checker.units.qual.A;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pub.wkq.common.utils.MailUtils;

import javax.annotation.Resource;

@RestController
@RequestMapping("resource")
public class TestController {
    @Resource
    private MailUtils mailUtils;
    @GetMapping("test")
    public String test() {
        mailUtils.sendSimpleMail("wang.kaiqi@foxmail.com", "2630925279@qq.com", "快来抱抱", "快来抱抱");
        return "resource-service";
    }
}
